package com.pwrd.sframe.core.obverser;

import com.pwrd.sframe.conn.Connection;
import com.pwrd.sframe.core.annotation.Init;
import com.pwrd.game.service.GateService;
import com.pwrd.sframe.support.function.IFunc2;
import com.pwrd.sframe.support.function.IFunc3;
import com.pwrd.sframe.support.function.Func;


/**
 * @Auther syc.
 * @Date 2017/3/2 11:37.
 */
public class RemoteCallObverserInit {

    @Init
    public static void init() {
        RemoteCallObverser.register("Connection::dispatch", new Func((IFunc2<Connection ,byte[]>) Connection::dispatch));
        RemoteCallObverser.register("GateService::login", new Func((IFunc3<GateService,Integer , byte[]>) GateService::login));
    }
}
